package com.marver.beans;

import com.marver.common.utils.group.AddGroup;
import com.marver.entity.ByPage;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description: 添加用户入参
 * @Author: Marver
 * @date: 2018-04-27 15:53
 **/
public class UserInfoQo extends ByPage {
    private Long id;
    @NotBlank(message = "用户名不能为空", groups = {AddGroup.class})
    private String username;  //用户名
    private String password;        //密码
    private String salt;            //盐
    @NotBlank(message = "邮箱不能为空", groups = {AddGroup.class})
    @Email(message = "邮箱格式不正确", groups = {AddGroup.class})
    private String email;       //邮箱
    @NotBlank(message = "手机号不能为空", groups = {AddGroup.class})
    private String mobile;          //手机号
    @NotNull(message = "部门不能为空", groups = {AddGroup.class})
    private Long deptId;       //部门ID
    private String createDateTime;//创建时间
    private String creater;//创建人
    private String updateDateTime;//修改时间
    private String updater;//修改人
    private String deleteFlag;//删除标记
    private Integer state;//状态  0：禁用   1：正常
    private List<Long> roleIdList; //角色列表

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(String createDateTime) {
        this.createDateTime = createDateTime;
    }

    public String getUpdateDateTime() {
        return updateDateTime;
    }

    public void setUpdateDateTime(String updateDateTime) {
        this.updateDateTime = updateDateTime;
    }

    public List<Long> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(List<Long> roleIdList) {
        this.roleIdList = roleIdList;
    }
}
